<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'qrcode.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
  </head>
  
  <body>
  <!-- 导入qrcode 和jquery -->
	<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="js/jquery.qrcode.min.js"></script>
  <p>Render in table</p>
<div id="qrcodeTable"></div>
<p>Render in canvas</p>
<div id="qrcodeCanvas"></div>
  
  
  
  
 <script>
	//jQuery('#qrcodeTable').qrcode("this plugin is great");
	//table
	 
  //jQuery('#qrcodeTable').qrcode({width: 200,height: 200,correctLevel:0,render: "table",text: "ba labv a fdsl"});   
 
	jQuery('#qrcodeTable').qrcode({
		render	: "table",
		text	: "https://qr.alipay.com/bax02520ntwh1codx6m800cc"
	});	 
	jQuery('#qrcodeCanvas').qrcode({
		text	: "https://qr.alipay.com/bax02520ntwh1codx6m800cc"
	});	
</script>
  </body>
</html>
